package com.gpframework.module.req.login;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotBlank;

/**
 * 微信登录请求体
 */
@Data
@ApiModel
@Validated
public class WechatLoginReq {

    @NotBlank(message = "请输入unionid")
    @ApiModelProperty(value = "unionid", required = true)
    private String unionid;

    @NotBlank(message = "请输入openid")
    @ApiModelProperty(value = "openid", required = true)
    private String openid;

    @NotBlank(message = "请输入昵称")
    @ApiModelProperty(value = "昵称", required = true)
    private String nickname;

    @ApiModelProperty(value = "头像")
    private String avatar;

    @ApiModelProperty(value = "性别")
    private String sex;

    @NotBlank(message = "请输入设备类型")
    @ApiModelProperty(value = "设备类型 Android或IOS", required = true)
    private String deviceType;

    @ApiModelProperty(value = "安装渠道", required = false)
    private String channel;

    @ApiModelProperty(value = "设备token", required = false)
    private String deviceToken;

    @ApiModelProperty(value = "设备信息", required = false)
    private String deviceInfo;

    @ApiModelProperty(value = "本机语言", required = false)
    private String nativeLanguage;

}
